<p id="notice"><h3><%= notice %></h3></p>
<table border = "1">
	<thead>
    	<tr>
			<th><h4>Staff's Detail</h4></th>
			<th><h4>Address</h4></th>
		</tr>
	</thead>
	
	<tbody>
		<tr>
        	<td>
				<p>
					<strong>Staff's name: </strong><%= @staff.full_name %></br>
					<strong>Staff role:</strong><%= @staff.staff_role.label %></br>
					<strong>Date of Brthday: </strong><%= @staff.dob %></br>
					<strong>Status: </strong><%= @staff.active %></br>
				</p>
				<p>
					<%= link_to 'Edit Staff', edit_staff_path(@staff) %> |
					<%= link_to 'Destroy', Staff, method: :delete, data: { confirm: 'Are you sure?' } %>
				</p>
			</td>
			<td>
      			<%= render @staff.contacts %>			
				<p>
					<%= link_to 'Add New Address', new_staff_contact_path(:staff_id => params[:id]) %> 
				</p>
			</td>
		</tr>
</table>

<%= link_to 'Back to staffs list', staffs_path %> |
<%= link_to 'Back to New Appointment', new_appointment_path %> |
<%= link_to 'Back to Appointments List', appointments_path %>

